FROM java:8-jre

MAINTAINER chxlay@gmail.com

ARG TIME_ZONE_ARG

ENV TIMZONE=$TIME_ZONE_ARG

ENV JAVA_OPTS="-Xms256m -Xmx512m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TIMZONE /etc/localtime && echo $TIMZONE > /etc/timezone

RUN mkdir -p /behelpful-nacos

WORKDIR /behelpful-nacos

EXPOSE 8848

ADD ./target/behelpful-nacos.jar ./

CMD sleep 5;java $JAVA_OPTS -jar behelpful-nacos.jar


